package com.qfjy.controller;

import com.qfjy.service.DemoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping("demo")
@Slf4j
@Controller
public class DemoController {

    @Autowired
    private DemoService demoService;

    @GetMapping("info")
    @ResponseBody
    public Object info(){
        log.info("后台管理端-微信微服务--》请求");
        return demoService.selectList();
    }
}
